package thread;

public class User {
    private String name;

    public User() {
        name = Thread.currentThread().getName();
        System.out.println("new User " + name);
    }
    public String getName(){
        System.out.println("new User " + Thread.currentThread().getName());
        return name;
    }
}
